package com.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.entity.SmsSpikeActivity;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface SmsSpikeActivityService extends IService<SmsSpikeActivity> {
    /**
     * 根据ID查找秒杀活动
     * @param id
     * @return
     */
    public SmsSpikeActivity getById(Integer id);

    /**
     * 查询所有秒杀活动
     * @return
     */
    public List<SmsSpikeActivity> getAll();

    /**
     * 添加或修改秒杀活动活动
     * @param smsSpikeActivity
     * @return
     */
    public boolean Save(SmsSpikeActivity smsSpikeActivity);

    /**
     * 根据ID删除秒杀活动
     * @param id
     * @return
     */
    public boolean delete(Integer id);



}
